import axios from "../../axios.js"
// 前台首页
export default {
    /**==============金融顾问,部门经理，前台中心总监============== */
    getCustManagerHome(data) {
        return axios({
            url: '/crm/selectHomePage',
            method: 'get',
            params: data
        })
    },
    // 信息中心总监
    getInfoCenterHome(data) {
        return axios({
            url: '/crm/selectInfoManagerHomePage',
            method: 'post',
            params: data
        })
    },
    // 获取部门签单柱状图数据
    getSignDepart(data) {
        return axios({
            url: '/crm/selectInfoManagerDepartment',
            method: 'post',
            data
        })
    },
    // 获取部门放款柱状图数据
    getLoanDepart(data) {
        return axios({
            url: '/crm/selectLoanManagerDepartment',
            method: 'post',
            data
        })
    },
    // 信息管理部接口
    infoMangerHome(data) {
        return axios({
            url: '/crm/selectInfoAllCenter',
            method: 'post',
            data
        })
    },
    // 接线服务部接口
    custServiceHome(data) {
        return axios({
            url: '/crm/selectCustomerServiceDepartment',
            method: 'post',
            data
        })
    },
    /**=======================前台金融顾问===================== */
    // 查询关注客户和意向客户和流转客户 
    frontCustApi1(data) {
        return axios({
            url: '/crm/selectFocusIntend',
            method: 'get',
            params: data
        })
    },
    // 查询签单排名  前123名和自己的名次
    frontCustApi2(data) {
        return axios({
            url: '/crm/getRankings',
            method: 'get',
            params: data
        })
    },
    // 查询客户的等级统计/查询计划统计/查询签单统计/首电情况/客户状态
    frontCustApi3(data) {
        return axios({
            url: '/crm/setCustomerHomePage',
            method: 'get',
            params: data
        })
    },
    // 还款日历
    frontCustApi4(data) {
        return axios({
            url: '/crm/repaymentSelect',
            method: 'get',
            params: data
        })
    },
    // 到期日历
    frontCustApi5(data) {
        return axios({
            url: '/crm/repaymentDutySelect',
            method: 'get',
            params: data
        })
    },
    // 生日提醒
    frontCustApi6(data) {
        return axios({
            url: '/crm/birthdaySelect',
            method: 'get',
            params: data
        })
    },
    /**=======================前台部门经理===================== */
    // 查询关注客户和意向客户/当月签单数
    frontDepartApi1(data) {
        return axios({
            url: '/crm/selectFocusIntendDepartCenter',
            method: 'get',
            params: data
        })
    },
    // 查询客户的等级统计/查询计划统计/查询签单统计/首电情况/客户状态
    frontDepartApi2(data) {
        return axios({
            url: '/crm/setCustomerHomePage',
            method: 'get',
            params: data
        })
    },
    // 查询签单本部门排名 
    frontDepartApi3(data) {
        return axios({
            url: '/crm/selectMyDepartRinking',
            method: 'get',
            params: data
        })
    },
    // 部门排名 
    frontDepartApi4(data) {
        return axios({
            url: '/crm/getRankingsByManager',
            method: 'get',
            params: data
        })
    },
    // 目标完成情况
    frontDepartApi5(data) {
        return axios({
            url: '/crm/selectAimBySign',
            method: 'get',
            params: data
        })
    },
    // 还款日历
    frontDepartApi6(data) {
        return axios({
            url: '/crm/repaymentSelect',
            method: 'get',
            params: data
        })
    },
    // 到期日历
    frontDepartApi7(data) {
        return axios({
            url: '/crm/repaymentDutySelect',
            method: 'get',
            params: data
        })
    },
    // 电话情况
    frontDepartApi8(data) {
        return axios({
            url: '/crm/selectManagerPhone',
            method: 'get',
            params: data
        })
    },
    /**=====================前台中心总监================================== */
    // 查询关注客户和意向客户
    frontCenterApi1(data) {
        return axios({
            url: '/crm/selectFocusIntendDepartCenter',
            method: 'get',
            params: data
        })
    },
    // 上门计划数
    frontCenterApi2(data) {
        return axios({
            url: '/crm/selectGoHomePlan',
            method: 'get',
            params: data
        })
    },
    // 中心下部门积分排名
    frontCenterApi3(data) {
        return axios({
            url: '/crm/getRankingsByCenter',
            method: 'get',
            params: data
        })
    },
    // 放款排名
    frontCenterApi4(data) {
        return axios({
            url: '/crm/getLoanAmount',
            method: 'get',
            params: data
        })
    },
    // 当天通话情况
    frontCenterApi5(data) {
        return axios({
            url: '/crm/getCallInfoSituation',
            method: 'get',
            params: data
        })
    },
    // 预警相关
    frontCenterApi6(data) {
        return axios({
            url: '/crm/getEarlyWarnings',
            method: 'get',
            params: data
        })
    },
    // 预警的值
    frontCenterApi7(data) {
        return axios({
            url: '/crm/selectUserHomePageEntityNum',
            method: 'get',
            params: data
        })
    },
    // 查询客户的等级统计/查询计划统计/查询签单统计/首电情况/客户状态
    frontCenterApi8(data) {
        return axios({
            url: '/crm/setCustomerHomePage',
            method: 'get',
            params: data
        })
    },
    // 签单周
    frontCenterApi9(data) {
        return axios({
            url: '/crm/getRankingsByCenterWeek',
            method: 'get',
            params: data
        })
    },
    // 利润月
    frontCenterApi10(data) {
        return axios({
            url: '/crm/getProfitMonth',
            method: 'get',
            params: data
        })
    },
    // 放款目标
    frontCenterApi11(data) {
        return axios({
            url: '/crm/getAimCollection',
            method: 'get',
            params: data
        })
    },
    // 毛利目标
    frontCenterApi12(data) {
        return axios({
            url: '/crm/getAimGrossProfit',
            method: 'get',
            params: data
        })
    },
    // 年度利润排名
    frontCenterApi13(data) {
        return axios({
            url: '/crm/getProperYear',
            method: 'get',
            params: data
        })
    },
    /**====分别为查询客户的等级统计,查询客户的计划统计,查询签单统计,首电情况,客户情况=== */
    getpage1Api1(data) {
        return axios({
            url: '/crm/setCustomerHomePageOne',
            method: 'get',
            params: data
        })
    },
    getpage1Api2(data) {
        return axios({
            url: '/crm/setCustomerHomePageTwo',
            method: 'get',
            params: data
        })
    },
    getpage1Api3(data) {
        return axios({
            url: '/crm/setCustomerHomePageThree',
            method: 'get',
            params: data
        })
    },
    getpage1Api4(data) {
        return axios({
            url: 'crm/setCustomerHomePageFour',
            method: 'get',
            params: data
        })
    },
    getpage1Api5(data) {
        return axios({
            url: '/crm/setCustomerHomePageFive',
            method: 'get',
            params: data
        })
    },
    getpage1Api6(data) {
        return axios({
            url: '/crm/setCustomerHomePageFourOne',
            method: 'get',
            params: data
        })
    },
    /**=================================================== */
    /**===================信息中心总监========================= */
    // 房信顺签单量 
    infoCenterApi1(data) {
        return axios({
            url: '/crm/setThreeSignNumberTo',
            method: 'post',
            data
        })
    },
    // 首点签单
    infoCenterApi2(data) {
        return axios({
            url: '/crm/selectFirstSignAbout',
            method: 'post',
            data
        })
    },
    // 放款额
    infoCenterApi3(data) {
        return axios({
            url: '/crm/setLoanNumberTo',
            method: 'post',
            data
        })
    },
    // 各来源签单占比和各来源签单总数
    infoCenterApi4(data) {
        return axios({
            url: '/crm/selectDateFromAll',
            method: 'post',
            data
        })
    },
    // 获取网络电台数据
    getDataForm(data) {
        return axios({
            url: '/crm/dataSource/queryOpenLow',
            method: 'get',
            params: data
        })
    },
    /**=======================后台总监============================= */
    // 接口一，后台首页展示内容
    getBackHomeData(data) {
        return axios({
            url: `/crm/yearselectBackstageStatistics?departmentParent=${data.departmentParent}&year=${data.year}`,
            method: 'get'
        })
    },
    // 接口二，下方一级表格
    getBackHomeData2(data){
        return axios({
            url: `/crm/selectBackstageStatistics?departmentParent=${data.departmentParent}&month=${data.month}`,
            method: 'get'
        })
    }
}
